package com.njdj.gps.kernel.dao.impl;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import com.njdj.gps.kernel.dao.ICreateIdDao;

/**
 * @description 专门用来获取主键的dao，此类与其他自动生成的dao在父类继承上有所不同
 * @author Rocky Wang
 * @create 2012-04-22
 */
public class CreateIdDaoImpl extends SqlMapClientDaoSupport implements ICreateIdDao{

	/**
	 * @description 获取主键
	 * @author Rocky Wang
	 * @create 2012-04-22
	 */
	public Long getId() {
		return (Long)this.getSqlMapClientTemplate().queryForObject("getId");
	}

}
